*********************************
*	Author: Rithika Kumar	    *
*    Figure A1     	            *
*********************************

** Set working directory to "JOP Replication files" folder on your computer


use "DATA FILES TO SHARE/data_for_analysis_RK_controls.dta", clear


drop if mig_dur<0

** Migration details 
est clear
estpost tabstat mig_away_dur mig_dur mig_all_years mig_total ///
age_husband mig_companion_with_others mig_viafamily_friend mig_thekedaar,c(stat) stat(mean sd min max n)
esttab using "OUTPUT/TABLES/Table_A1.tex", replace ////
cells("mean(fmt(%13.2fc)) sd(fmt(%13.2fc)) min max count") nonumber ////
collabels("Mean" "SD" "Min" "Max" "N") ///
varlabels("mig_away_dur" "Avg. No. of Months Migrant Currently Away" "mig_dur" "Avg. Duration of One Cycle"  "mig_all_years" "Migrant in All 3 years"  "mig_total" "Avg. Years Migration (2019=21)" ///
"age_husband"  "Mean Migrant Age"  "mig_companion_with_others" "Migrated with friends/family"   "mig_viafamily_friend"  "Employment through Friend or Family"  "mig_thekedaar" "Employment through Middleman")
